/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package apriori;

/**
 *
 * @author Administrator
 */
import java.util.ArrayList;


public class countOfItem implements Comparable<countOfItem>
{
	private  int count;
	private  ArrayList<String> list;

        public int compareTo(countOfItem o)
	{
		if(o instanceof countOfItem)
		{
			if(count>o.count)
				return -1;
			else
				return 1;
		}
		return 0;

	}


	public countOfItem(ArrayList<String> list)
	{
	    count=0;
		this.list=list;
	}

	public int getCount()
	{
		return count;
	}
	public ArrayList<String> getList()
	{
		return list;
	}

	public void setCount(int count)
	{
		 this.count=count;

	}

}
